package com.ruoyi.qd.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.compress.utils.Lists;

import java.util.Date;
import java.util.List;

@Data
public class RobotQueueNowRes {
    private Long robotId;
    private String robotTitle;
    private String robotSn;
    private String robotImage;

    /**
     * 呼叫中
     * 呼叫中和处理中只能存在其中 1 个
     */
    private Base call;

    /**
     * 处理中
     * 呼叫中和处理中只能存在其中 1 个
     */
    private Base process;

    /**
     * 排队中
     */
    private List<Base> lines = Lists.newArrayList();

    /**
     * 所有的
     */
    private List<Base> alls = Lists.newArrayList();

    @Data
    public static class Base {
        private Long queueId;

        private Long userId;
        private String userName;
        private String nickName;

        private Long orderId;
        private String orderNo;

        /**
         * 预约时间
         */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date appointmentTime;

        /**
         * @see com.ruoyi.qd.enums.RobotQueueStatusEnum
         */
        private String status;
        private String statusStr;
    }
}
